<script setup lang="ts">
// const user = null;
const user = {
  uname: "登录 | 注册",
  // uname: "zyf",
};
const msg = "访问资源受限，请先登录";
let spanInnerHTML: string;
// alert("用户名不能为空");
// alert("密码不能为空");
// alert("密码不一致");
</script>

<template>
  <div class="content">
    <h3 align="center">用户登录</h3>
    <div align="center">
      <form action="<%=basePath%>LoginAction" method="post">
        <table>
          <tr>
            <td><p>用户名：</p></td>
            <td>
              <input type="text" name="uname" placeholder="请输入用户名" />
            </td>
          </tr>
          <tr>
            <td><p>密码：</p></td>
            <td>
              <input type="password" name="pwd" placeholder="请输入密码" />
            </td>
          </tr>
          <tr>
            <td colspan="2" align="center">
              <input type="submit" value="登录" class="mybutton" />
            </td>
          </tr>
          <tr>
            <td colspan="2" align="center">
              <font style="color: red; font-size: 16px">{{ msg }}</font>
            </td>
          </tr>
        </table>
      </form>
    </div>
  </div>
  <div class="clear"></div>
</template>
<style scoped>
body {
  margin: 0px;
  font-family: "微软雅黑";
}

.header {
  width: 100%;
  height: 187px;
}

.header_T {
  width: 100%;
  height: 30px;
  background-color: #f1f1f1;
  line-height: 30px;
}

.header_T_C {
  width: 1200px;
  height: 30px;
  margin: 0px auto;
}

.header_C {
  width: 1200px;
  height: 115px;
  margin: 0px auto;
}

.logo {
  margin-top: 8px;
  float: left;
}

.serchBtn {
  width: 84px;
  height: 39px;
  margin: 35px 0 0 -5px;
  border-style: none;
  background-color: #ff2832;
  color: #fff;
  font-size: 18px;
  letter-spacing: 8px;
  font-weight: bold;
}

.serchTxt {
  width: 455px;
  height: 35px;
  margin: 35px 0 0 160px;
  text-indent: 10px;
  font-size: 18px;
  border: 2px solid #ff2832;
}

.shopcarBtn {
  width: 196px;
  height: 36px;
  float: right;
  margin-top: 35px;
  border: 2px solid #dcdcdc;
  background-color: #f6f6f6;
}
.shopcarBtn .num {
  display: inline-block;
  width: 78px;
  height: 36px;
  background-color: #ff2832;
  border-right: 2px solid #dcdcdc;
  float: left;
  line-height: 36px;
  color: #fff;
  font-size: 15px;
  padding-left: 30px;
}

.shopcarBtn .num:hover {
  background-color: #f6f6f6;
  color: #ff2832;
  font-weight: bold;
}

.shopcarBtn .order {
  display: inline-block;
  width: 86px;
  height: 36px;
  float: left;
  text-align: center;
  line-height: 36px;
  color: #646464;
}

/*------------------*/
.banner {
  width: 1200px;
  height: 40px;
  margin: 0px auto;
}

#liOne {
  width: 202px;
  height: 40px;
  background-color: #ff2832;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.banner li {
  float: left;
  line-height: 40px;
  text-align: center;
  color: #fff;
  font-weight: bold;
}

.banner li a {
  display: block;
  width: 140px;
  height: 40px;
  font-weight: bold;
}

#login,
#reg {
  display: none;
}

#txt1 {
  width: 340px;
  height: 25px;
  margin: 40px auto;
}

.text {
  border-radius: 4px;
  height: 25px;
  width: 270px;
  text-indent: 5px;
}

/*————————————————————————————————————————————————————————————————————————————————————————*/

.content {
  width: 1200px;
  height: 100%;
  margin: 20px auto;
}

.footer {
  width: 100%;
  height: 210px;
  border-top: 2px solid #ff2832;
}
.footer_T {
  width: 100%;
  height: 89px;
  background-color: #fafafa;
  border-bottom: 1px solid #ebebeb;
}
.footerImg {
  width: 1200px;
  height: 90px;
  margin: 0px auto;
  padding-top: 10px;
}
.footerImg > img {
  display: block;
  margin: 0px auto;
}
.footer_B {
  width: 1200px;
  height: 130px;
  margin: 0px auto;
}

.footer_ul {
  width: 888px;
  height: 30px;
  margin: 0px auto;
  margin-top: 30px;
}
.footer_ul li {
  float: left;
}
.footer_ul li a {
  display: block;
  width: 110px;
  height: 14px;
  border-right: 1px solid #ccc;
  text-align: center;
  color: #8c8c8c;
  line-height: 12px;
}

.footer_B p {
  width: 1100px;
  margin: 0px auto;
  text-align: center;
  margin-top: 30px;
  color: #8c8c8c;
}
.ulTop,
.ulBot,
table {
  /* 	width: 960px; */
  height: 50px;
  margin: 0px auto;
  color: #646464;
}

table {
  height: 100%;
}

.ulTop > li,
.ulBot > li {
  float: left;
  width: 160px;
  height: 50px;
  line-height: 50px;
  text-align: center;
}

.goods {
  display: block;
  width: 958px;
  height: 123px;
  border: 1px solid #ccc;
  background-color: #fafafa;
}

.select,
.bkInfo,
.price,
.numPrice,
.addMinus,
.do {
  width: 160px;
  height: 123px;
  text-align: center;
}

#bknum {
  width: 30px;
  height: 30px;
  margin: 0px -5px 0px -5px;
  text-align: center;
}

#addBtn,
#minusBtn {
  width: 35px;
  height: 34px;
}

#staBtn {
  width: 120px;
  height: 40px;
  font-size: 18px;
  background-color: #ff2832;
  color: #fff;
  border: none;
  border-radius: 6px;
}

.mybutton {
  color: white;
  background-color: red;
  margin-top: 8px;
}
</style>
